<?php
class FormDataProcessor
{
	static public function standardize($post)
	{
		foreach ($post as $key => $value)
		{
			if ("attr_" == substr($key, 0, 5))
			{
				$post["attr"][substr($key, 5)] = $post[$key];
				unset($post[$key]);
			}
		}
		return $post;
	}
}